import request from '@/utils/request'

// 查询结题管理列表
export function listClosure(query) {
  return request({
    url: '/tongyan/closure/list',
    method: 'get',
    params: query
  })
}

// 查询结题管理详细
export function getClosure(closureId) {
  return request({
    url: '/tongyan/closure/' + closureId,
    method: 'get'
  })
}

// 新增结题管理
export function addClosure(data) {
  return request({
    url: '/tongyan/closure',
    method: 'post',
    data: data
  })
}

// 修改结题管理
export function updateClosure(data) {
  return request({
    url: '/tongyan/closure',
    method: 'put',
    data: data
  })
}

// 删除结题管理
export function delClosure(closureId) {
  return request({
    url: '/tongyan/closure/' + closureId,
    method: 'delete'
  })
}
